<?php
include_once('common/header.php');
$objOffline 	= new Offline();
$objCommon		= new Vfriend_Common();
$intLimit		= OFFLINE_LIMIT;
$intTotal		= 0;
$intPage		= $objRequest->getParam('page', 1);
$intCateId		= $objRequest->getParam('cateid', 0);
$intScateId		= $objRequest->getParam('scateid', 0);
if($intScateId > 0) $intCateId = $intScateId;
$intOffset		= ($intPage-1)*$intLimit;
$arrResult		= $objOffline->getAllForCategory($intCateId,$intOffset,$intLimit,$intTotal);
$this->view->arrResult		= $arrResult;
$this->view->intTotalPage	= ceil($intTotal / $intLimit);
$this->view->intPage 		= $intPage;
$this->view->intCateId 		= $intCateId;
$this->view->arrCateInfo 	= $objCommon->getCategoryById($intCateId);
$this->view->arrCate 		= $objCommon->getCategoryByType(12);
?>